package com.sopaths.contract.domain;

public class Range {
	private int floor;

	private int ceiling;

	private String unit;

	public Range(int floor, int ceiling, String unit) {
		this.floor = floor;
		this.ceiling = ceiling;
		this.unit = unit;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append(floor).append("-").append(ceiling).append(unit);
		return builder.toString();
	}

	public String getText() {
		return this.toString();
	}

	public int getFloor() {
		return floor;
	}

	public void setFloor(int floor) {
		this.floor = floor;
	}

	public int getCeiling() {
		return ceiling;
	}

	public void setCeiling(int ceiling) {
		this.ceiling = ceiling;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
}
